package com.quzubuluo.quzutool.app;

import android.app.Application;
import android.content.Context;

import com.xiasuhuei321.loadingdialog.manager.StyleManager;
import com.xiasuhuei321.loadingdialog.view.LoadingDialog;

public class App extends Application {

    private static App app;

    public static Context getInstance() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        StyleManager s = new StyleManager();

//在这里调用方法设置s的属性
//code here...
        s.Anim(false).repeatTime(0).contentSize(-1).intercept(false);
        s.textSize(12).failedText("上传失败").loadText("正在上传数据...").failedText("上传数据失败");
        LoadingDialog.initStyle(s);
    }
}